﻿/// <reference path="jquery-1.5.1.min.js" />
/// <reference path="jquery-ui-1.8.11.min.js" />



var d = new Date();
var curr_date = d.getDate();
var curr_month = d.getMonth() + 2; //Months are zero based
var curr_year = d.getFullYear();

$(document).ready(function () {
    $('#date3').DatePicker({
        flat: true,
        date: [],
        current: curr_year + "-" + curr_month + "-" + curr_date,
        calendars: 3,
        mode: 'range',
        onRender: function (date) {
            return {
                disabled: (date.valueOf() < d.valueOf()),
                className: date.valueOf() <= d.valueOf() ? 'datepickerSpecial' : false
            }
        },
        starts: 1
    });
});